package com.example.flower_shop.vo.user;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class ResetPwdReq {
    @NotBlank(message = "旧密码不能为空!")
    @Schema(description = "旧密码")
    private String oldPwd;
    @NotBlank(message = "新密码不能为空!")
    @Schema(description = "新密码")
    @Pattern(regexp = "^[0-9A-Za-z]{6,16}$", message = "密码必须为6-16位数字、字母")
    private String newPwd;
    @NotBlank(message = "确认密码不能为空!")
    @Schema(description = "确认密码")
    private String confirmPwd;
}
